import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

// 当前选择的器部件
export const commonConfigStore = defineStore('commonConfigStore', () => {
  const stationId = ref('') // 当前选择的厂商id
  const showBackBtn = ref(false) // 是否显示返回按钮

  function changeStationId(data) {
    stationId.value = data
  }

  function changeShowBackBtn(data) {
    showBackBtn.value = data
  }


  return {
    stationId,
    changeStationId,
    showBackBtn,
    changeShowBackBtn,
  }
})
